package com.example.im.domain.po;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 客户信息表
 * @author whopxx
 * @TableName cust_info
 */
@TableName(value ="cust_info")
@Data
public class CustInfo implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "主键id")
    private Integer id;

    /**
     * 客户id
     */
    @Schema(description = "客户id")
    private String custId;

    /**
     * 手机号
     */
    @Schema(description = "手机号")
    private String mobile;

    /**
     * 真实姓名
     */
    @Schema(description = "真实姓名")
    private String realName;

    /**
     * 省份
     */
    @Schema(description = "省份")
    private String province;

    /**
     * 城市
     */
    @Schema(description = "城市")
    private String city;

    /**
     * 地址
     */
    @Schema(description = "地址")
    private String address;

    /**
     * 登录ip
     */
    @Schema(description = "登录ip")
    private String loginIp;

    /**
     * 登录时间
     */
    @Schema(description = "登录时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime loginTime;

    /**
     * 是否启用
     */
    @Schema(description = "是否启用")
    private Integer enabled;

    /**
     * vip等级
     */
    @Schema(description = "vip等级")
    private Integer vipLevel;


    /**
     * 回捞系数
     */
    @Schema(description = "回捞系数")
    private Double pushRatio;

    /**
     * 风险系数
     */
    @Schema(description = "风险系数")
    private Double riskRatio;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}